OK, so an easier way to manage versions.

Debian package creation - crude, probably violated the Debian policys
but it seems to work just fine...
some other changes.
This commit is contained in:
Gordon Henderson
2015-01-31 16:43:08 +00:00
parent eb1fc2c920
commit 7cb817498e
13 changed files with 169 additions and 117 deletions

View File

@@ -44,6 +44,9 @@ OBJ = $(SRC:.c=.o)
all: gpio
version.h: ../VERSION
./newVersion
gpio: $(OBJ)
@echo [Link]
@$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
@@ -63,7 +66,7 @@ tags: $(SRC)
@ctags $(SRC)
.PHONY: install
install:
install: gpio
@echo "[Install]"
@cp gpio $(DESTDIR)$(PREFIX)/bin
@chown root.root $(DESTDIR)$(PREFIX)/bin/gpio
@@ -71,6 +74,12 @@ install:
@mkdir -p $(DESTDIR)$(PREFIX)/man/man1
@cp gpio.1 $(DESTDIR)$(PREFIX)/man/man1
.PHONY: install-deb
install-deb: gpio
@echo "[Install: deb]"
@install -m 0755 -d ~/wiringPi/debian/wiringPi/usr/bin
@install -m 0755 gpio ~/wiringPi/debian/wiringPi/usr/bin
.PHONY: uninstall
uninstall:
@echo "[UnInstall]"