diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-13 19:07:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-13 19:07:57 +0200 |
commit | 76485979dd99159f032b35a4bf87cb0b8ed4c87d (patch) | |
tree | c207ff5fcef5a71a3407b0121bbc19a30d70248f /Makefile | |
parent | Rewrite with style (and relicense) (diff) | |
download | adjbacklight-76485979dd99159f032b35a4bf87cb0b8ed4c87d.tar.gz adjbacklight-76485979dd99159f032b35a4bf87cb0b8ed4c87d.tar.bz2 adjbacklight-76485979dd99159f032b35a4bf87cb0b8ed4c87d.tar.xz |
Add test8.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -3,7 +3,7 @@ CONFIGFILE = config.mk include $(CONFIGFILE) -all: adjbacklight +all: adjbacklight test adjbacklight.o: adjbacklight.c arg.h $(CC) -c -o adjbacklight.o adjbacklight.c $(CCFLAGS) $(CPPFLAGS) @@ -11,6 +11,15 @@ adjbacklight.o: adjbacklight.c arg.h adjbacklight: adjbacklight.o $(CC) -o adjbacklight adjbacklight.o $(LDFLAGS) +test.o: test.c adjbacklight.c arg.h + $(CC) -c -o test.o test.c $(CCFLAGS) $(CPPFLAGS) + +test: test.o + $(CC) -o test test.o $(LDFLAGS) + +check: + ./test.sh + install: adjbacklight mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" @@ -27,6 +36,6 @@ uninstall: -rmdir -- "$(DESTDIR)$(PREFIX)/share/licenses/adjbacklight" clean: - -rm -- adjbacklight *.o + -rm -r -- adjbacklight test *.o .testdir -.PHONY: all install uninstall clean +.PHONY: all check install uninstall clean |