Merge pull request #13 from rdebath/patch-fixes
[congif.git] / Makefile
blob122253e2378ac18dad79579f5c041bb689e62637
1 PREFIX=/usr/local
2 MANPREFIX=$(PREFIX)/man
3 BINDIR=$(DESTDIR)$(PREFIX)/bin
4 MANDIR=$(DESTDIR)$(MANPREFIX)/man1
5 DEFAULT_FONT=misc-fixed-6x10.mbf
7 HDR = term.h mbf.h gif.h
8 SRC = ${HDR:.h=.c}
9 EHDR = default.h cs_vtg.h cs_437.h default_font.h
10 ESRC = main.c
12 all: congif
14 congif: $(HDR) $(EHDR) $(SRC) $(ESRC)
15 $(CC) $(CFLAGS) -o $@ $(SRC) $(ESRC)
17 default_font.h: $(DEFAULT_FONT) mbf.h mbf.c mbf2c.c
18 $(CC) $(CFLAGS) -o mbf2c mbf.c mbf2c.c
19 ./mbf2c $(DEFAULT_FONT) > fnt.tmp
20 mv fnt.tmp $@
22 install: congif
23 rm -f $(BINDIR)/congif
24 mkdir -p $(BINDIR)
25 cp congif $(BINDIR)/congif
26 mkdir -p $(MANDIR)
27 cp congif.1 $(MANDIR)/congif.1
29 uninstall: $(BINDIR)/congif
30 rm $(BINDIR)/congif
31 rm $(MANDIR)/congif.1
32 clean:
33 $(RM) congif default_font.h mbf2c fnt.tmp