-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
34 lines (24 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (2014) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000, there is a non-exclusive license for use of this
# work by or on behalf of the U.S. Government. Export of this program
# may require a license from the United States Government.
NOTICES := license.txt README.txt COPYRIGHT.txt
SOURCES := simulator/__init__.py simulator/abstractsimulator.py simulator/ropuf.py bch_code.py bitstring.py bitstringutils.py chipidentify.py spat.py quartus.py randomness.py sigfile.py
EXTRAS := spat.bat Makefile
clean:
find . -name "*.py[oc]" -exec rm {} \;
rm *~ *.bak *.swp
.PHONY: clean
linecount:
wc -l ${SOURCES}
DIST_NAME := spat-dist
tgz: ${DIST_NAME}.tar.gz
tar.gz: ${DIST_NAME}.tar.gz
${DIST_NAME}.tar.gz: ${SOURCES} ${NOTICES} ${EXTRAS}
tar -cvzf ${DIST_NAME}.tar.gz ${SOURCES} ${NOTICES} ${EXTRAS}
zip: ${DIST_NAME}.zip
${DIST_NAME}.zip: ${SOURCES} ${NOTICES} ${EXTRAS}
zip ${DIST_NAME}.zip ${SOURCES} ${NOTICES} ${EXTRAS}
7z: ${DIST_NAME}.7z
${DIST_NAME}.7z: ${SOURCES} ${NOTICES} ${EXTRAS}
7z a ${DIST_NAME}.7z ${SOURCES} ${NOTICES} ${EXTRAS}