chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

Makefile (840B)


      1 # tyrmel
      2 VERSION = 0.1.1
      3 PREFIX = /usr/local
      4 
      5 PKGS = x11 xft xrender fontconfig vterm libpng zlib
      6 CFLAGS += -std=c99 -Wall -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" `pkg-config --cflags $(PKGS)`
      7 LDLIBS += `pkg-config --libs $(PKGS)` -lutil
      8 
      9 tyrmel: tyrmel.c
     10 	$(CC) $(CFLAGS) -o $@ tyrmel.c $(LDFLAGS) $(LDLIBS)
     11 
     12 install: tyrmel
     13 	mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)/usr/share/applications $(DESTDIR)/usr/share/fonts/tyrmel
     14 	install -m 755 tyrmel $(DESTDIR)$(PREFIX)/bin/
     15 	install -m 644 vga.ttf $(DESTDIR)/usr/share/fonts/tyrmel/
     16 	sed 's|@PREFIX@|$(PREFIX)|' tyrmel.desktop > $(DESTDIR)/usr/share/applications/tyrmel.desktop
     17 
     18 uninstall:
     19 	rm -rf $(DESTDIR)$(PREFIX)/bin/tyrmel $(DESTDIR)/usr/share/fonts/tyrmel $(DESTDIR)/usr/share/applications/tyrmel.desktop
     20 
     21 clean:
     22 	rm -f tyrmel
     23 
     24 .PHONY: install uninstall clean