Various Makefile cleanups

This commit is contained in:
Clifford Wolf 2015-07-18 21:22:44 +02:00
parent 3b079a6c5e
commit ae459d7ae1
6 changed files with 25 additions and 4 deletions

View File

@ -4,6 +4,11 @@ all:
$(MAKE) -C icepack
$(MAKE) -C iceprog
clean:
$(MAKE) -C icebox clean
$(MAKE) -C icepack clean
$(MAKE) -C iceprog clean
install:
$(MAKE) -C icebox install
$(MAKE) -C icepack install
@ -14,5 +19,5 @@ uninstall:
$(MAKE) -C icepack uninstall
$(MAKE) -C iceprog uninstall
.PHONY: all install uninstall
.PHONY: all clean install uninstall

4
icebox/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
chipdb-1k.txt
chipdb-8k.txt
icebox.pyc
iceboxdb.pyc

View File

@ -1,5 +1,5 @@
chipdb: chipdb-1k.txt chipdb-8k.txt
all: chipdb-1k.txt chipdb-8k.txt
chipdb-1k.txt: icebox.py iceboxdb.py icebox_chipdb.py
python icebox_chipdb.py > chipdb-1k.new
@ -9,7 +9,11 @@ chipdb-8k.txt: icebox.py iceboxdb.py icebox_chipdb.py
python icebox_chipdb.py -8 > chipdb-8k.new
mv chipdb-8k.new chipdb-8k.txt
install: chipdb
clean:
rm -f chipdb-1k.txt chipdb-8k.txt
rm -f icebox.pyc iceboxdb.pyc
install: all
mkdir -p /usr/local/share/icebox
cp chipdb-1k.txt /usr/local/share/icebox/
cp chipdb-8k.txt /usr/local/share/icebox/
@ -35,5 +39,5 @@ uninstall:
rm -f /usr/local/share/icebox/chipdb-8k.txt
-rmdir /usr/local/share/icebox
.PHONY: install uninstall
.PHONY: all clean install uninstall

4
icepack/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
icepack
iceunpack
icepack.o
icepack.d

View File

@ -1,6 +1,7 @@
# CXX = clang
LDLIBS = -lm -lstdc++
CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11
CC = $(CXX)
all: icepack iceunpack

3
iceprog/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
iceprog
iceprog.o
iceprog.d