jdict

command line tool for looking up terms in yomidict dictionaries
git clone anongit@rnpnr.xyz:jdict.git
Log | Files | Refs | Feed | README | LICENSE

Makefile (521B)


      1 # See LICENSE for license details.
      2 include config.mk
      3 
      4 OBJ = jdict.o yomidict.o util.o
      5 
      6 default: jdict
      7 
      8 config.h:
      9 	cp config.def.h $@
     10 
     11 .c.o:
     12 	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
     13 
     14 $(OBJ): config.h config.mk
     15 
     16 jdict: $(OBJ)
     17 	$(CC) -o $@ $(OBJ) $(LDFLAGS)
     18 
     19 install: default jdict.1
     20 	mkdir -p $(PREFIX)/bin
     21 	cp jdict $(PREFIX)/bin
     22 	chmod 755 $(PREFIX)/bin/jdict
     23 	mkdir -p $(MANPREFIX)/man1
     24 	cp jdict.1 $(MANPREFIX)/man1/jdict.1
     25 	chmod 644 $(MANPREFIX)/man1/jdict.1
     26 
     27 uninstall:
     28 	rm $(PREFIX)/bin/jdict
     29 
     30 clean:
     31 	rm *.o jdict