Skip to content

Commit

Permalink
Add target `check'
Browse files Browse the repository at this point in the history
  • Loading branch information
rlutz committed Aug 21, 2017
1 parent 873eb9e commit a01e627
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include config.mk

SUBDIRS = icebox icepack iceprog icemulti icepll icetime icebram

all clean install uninstall:
all check clean install uninstall:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $@ || exit; \
done
Expand All @@ -14,5 +14,5 @@ mxebin: clean
cp icemulti/*.exe icepll/*.exe icetime/*.exe icestorm-win32/
zip -r icestorm-win32.zip icestorm-win32/

.PHONY: all clean install uninstall
.PHONY: all check clean install uninstall

4 changes: 3 additions & 1 deletion icebox/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ chipdb-8k.txt: icebox.py iceboxdb.py icebox_chipdb.py
python3 icebox_chipdb.py -8 > chipdb-8k.new
mv chipdb-8k.new chipdb-8k.txt

check: all

clean:
rm -f chipdb-1k.txt chipdb-8k.txt chipdb-384.txt chipdb-5k.txt
rm -f icebox.pyc iceboxdb.pyc
Expand Down Expand Up @@ -55,4 +57,4 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/share/icebox/chipdb-8k.txt
-rmdir $(DESTDIR)$(PREFIX)/share/icebox

.PHONY: all clean install uninstall
.PHONY: all check clean install uninstall
4 changes: 2 additions & 2 deletions icebram/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ all: icebram$(EXE)
icebram$(EXE): icebram.o
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)

test: icebram
check: all
bash rundemo.sh

install: all
Expand All @@ -27,5 +27,5 @@ clean:

-include *.d

.PHONY: all test install uninstall clean
.PHONY: all check install uninstall clean

4 changes: 3 additions & 1 deletion icemulti/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ all: icemulti$(EXE)
icemulti$(EXE): icemulti.o
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)

check: all

install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp icemulti$(EXE) $(DESTDIR)$(PREFIX)/bin/icemulti$(EXE)
Expand All @@ -23,5 +25,5 @@ clean:

-include *.d

.PHONY: all install uninstall clean
.PHONY: all check install uninstall clean

4 changes: 3 additions & 1 deletion icepack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ iceunpack: icepack
iceunpack.exe:
# no iceunpack.exe, use icepack -u

check: all

install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp icepack$(EXE) $(DESTDIR)$(PREFIX)/bin/icepack$(EXE)
Expand All @@ -33,5 +35,5 @@ clean:

-include *.d

.PHONY: all install uninstall clean
.PHONY: all check install uninstall clean

4 changes: 3 additions & 1 deletion icepll/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ all: icepll$(EXE)
icepll$(EXE): icepll.o
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)

check: all

install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp icepll$(EXE) $(DESTDIR)$(PREFIX)/bin/icepll$(EXE)
Expand All @@ -23,5 +25,5 @@ clean:

-include *.d

.PHONY: all install uninstall clean
.PHONY: all check install uninstall clean

4 changes: 3 additions & 1 deletion iceprog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ all: iceprog$(EXE)
iceprog$(EXE): iceprog.o
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)

check: all

install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp iceprog$(EXE) $(DESTDIR)$(PREFIX)/bin/iceprog$(EXE)
Expand All @@ -38,5 +40,5 @@ clean:

-include *.d

.PHONY: all install uninstall clean
.PHONY: all check install uninstall clean

4 changes: 2 additions & 2 deletions icetime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ show0 show1 show2 show3 show4 show5 show6 show7 show8 show9: icetime
bash show.sh $(subst show,test,$@)
xdot $(subst show,test,$@).dot

test: test0 test1 test2 test3 test4 test5 test6 test7 test8 test9
check: test0 test1 test2 test3 test4 test5 test6 test7 test8 test9

show: show0 show1 show2 show3 show4 show5 show6 show7 show8 show9

Expand All @@ -51,5 +51,5 @@ clean:

-include *.d

.PHONY: all install uninstall clean
.PHONY: all check install uninstall clean

0 comments on commit a01e627

Please sign in to comment.