build: Clean up makefile a bit.

This commit is contained in:
Solomon Peachy 2013-11-16 17:33:13 -05:00
parent 59b45faf6e
commit e0b75e01d1

View file

@ -3,30 +3,19 @@ LDFLAGS = -lusb-1.0
CUPS_BACKEND_DIR = /usr/lib/cups/backend
CUPS_DATA_DIR = /usr/share/cups
DEPS = backend_common.h
SOURCES = backend_sonyupdr150.c backend_kodak6800.c backend_common.c backend_kodak1400.c backend_shinkos2145.c backend_canonselphy.c backend_mitsu70x.c
all: gutenprint sonyupdr150 kodak6800 kodak1400 shinkos2145 canonselphy mitsu70x
BACKENDS = sonyupdr150 kodak6800 kodak1400 shinkos2145 canonselphy mitsu70x
DEPS = backend_common.h
SOURCES = backend_common.c $(addsuffix .c,$(addprefix backend_,$(BACKENDS)))
all: gutenprint $(BACKENDS)
gutenprint: $(SOURCES) $(DEPS)
gcc -o $@ $(SOURCES) $(LDFLAGS) $(CFLAGS)
sonyupdr150: gutenprint
ln -sf gutenprint $@
kodak6800: gutenprint
ln -sf gutenprint $@
kodak1400: gutenprint
ln -sf gutenprint $@
shinkos2145: gutenprint
ln -sf gutenprint $@
canonselphy: gutenprint
ln -sf gutenprint $@
mitsu70x: gutenprint
$(BACKENDS): gutenprint
ln -sf gutenprint $@
install:
@ -35,4 +24,4 @@ install:
install -o root -m 644 blacklist $(CUPS_DATA_DIR)/usb/net.sf.gimp-print.usb-quirks
clean:
rm -f gutenprint canonselphy kodak6800 kodak1400 shinkos2145 sonyupdr150 mitsu70x
rm -f gutenprint $(BACKENDS)