build: Fix up broken release tarball target.

This commit is contained in:
Solomon Peachy 2019-08-02 09:47:04 -04:00
parent e8f0ed7d0f
commit 5261e54f31
1 changed files with 8 additions and 7 deletions

View File

@ -7,6 +7,7 @@
EXEC_NAME ?= dyesub_backend EXEC_NAME ?= dyesub_backend
CPUS ?= $(shell nproc) CPUS ?= $(shell nproc)
#NO_GUTENPRINT = 1 #NO_GUTENPRINT = 1
REVISION ?= -g$(shell if [ -d .git ] ; then git rev-parse --short HEAD; else echo "NONE" ; fi)
# Destination directories (rely on CUPS to tell us where) # Destination directories (rely on CUPS to tell us where)
PREFIX ?= PREFIX ?=
@ -103,14 +104,14 @@ install:
$(INSTALL) -o root -m 644 blacklist $(CUPS_DATA_DIR)/usb/net.sf.gimp-print.usb-quirks $(INSTALL) -o root -m 644 blacklist $(CUPS_DATA_DIR)/usb/net.sf.gimp-print.usb-quirks
clean: clean:
$(RM) -f $(EXEC_NAME) $(BACKENDS) $(SOURCES:.c=.o) $(RM) $(EXEC_NAME) $(BACKENDS) $(SOURCES:.c=.o) lib70x/*o lib6145/*o
release: release: clean
$(RM) -Rf selphy_print-rel $(RM) -Rf selphy_print$(REVISION)
$(MKDIR) -p selphy_print-rel $(MKDIR) -p selphy_print$(REVISION)
cp -a *.c *.h Makefile blacklist COPYING README lib6145 D70 selphy_print-rel cp -a *.c *.h Makefile blacklist COPYING README lib6145 lib70x selphy_print$(REVISION)
tar -czvf selphy_print-rel.tar.gz selphy_print-rel tar -czvf selphy_print$(REVISION).tar.gz selphy_print$(REVISION)
$(RM) -Rf selphy_print-rel $(RM) -Rf selphy_print$(REVISION)
# Backend-specific joy: # Backend-specific joy:
backend_mitsu70x.o: CPPFLAGS += -DCORRTABLE_PATH=\"$(BACKEND_DATA_DIR)\" -include lib70x/libMitsuD70ImageReProcess.h backend_mitsu70x.o: CPPFLAGS += -DCORRTABLE_PATH=\"$(BACKEND_DATA_DIR)\" -include lib70x/libMitsuD70ImageReProcess.h