Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Oct 18, 2013
1 parent ba5e402 commit 0480cf1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 60 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ZSH OR DIE, PUNKS

bindir ?= /usr/bin

edid-decode: edid-decode.c
gcc -g -Wall -o $@ $<

clean:
rm -f edid-decode

install:
mkdir -p $(DESTDIR)$(bindir)
install -m 0755 edid-decode $(DESTDIR)$(bindir)
2 changes: 1 addition & 1 deletion debian/i-nex.install
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ README usr/share/i-nex/pastebinit
release.conf usr/share/i-nex/pastebinit
test.sh usr/share/i-nex/pastebinit
utils usr/share/i-nex/pastebinit
inex-edid usr/bin
edid-decode usr/bin
61 changes: 2 additions & 59 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,61 +1,4 @@
#!/usr/bin/make -f
build: build-stamp
build-stamp:
dh_testdir
touch build-stamp
/usr/bin/gbc3 -e -a -g -t -p -m src/i-nex
gba3 src/i-nex
gcc edid-decode.c -g -Wall -o inex-edid

clean:
dh_testdir
dh_testroot
rm -Rf `find . -name ".gambas"`
rm -Rf `find . -name "*.gambas"`
rm -Rf `find . -name "screenfetch-dev"`
rm -Rf `find . -name "inex-edid"`

rm -f build-stamp install-stamp
dh_clean

install: build
dh_testdir
dh_testroot
dh_clean -k

dh_installdirs

touch install-stamp

binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_install
dh_installmenu
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_gencontrol
dh_md5sums

binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_installdocs -i
dh_installchangelogs -i
dh_install -i
dh_installmenu -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
%:
dh $@

0 comments on commit 0480cf1

Please sign in to comment.