dmenium

small collection of dmenu scripts
git clone git://edryd.org/dmenium
Log | Files | Refs | LICENSE

Makefile (717B)


      1 # dmenium - small collection of scripts using dmenu
      2 # See LICENSE file for copyright and license details.
      3 
      4 # paths
      5 PREFIX = /usr/local
      6 MANPREFIX = ${PREFIX}/share/man
      7 
      8 EXE = dmenium
      9 
     10 progs = browse \
     11 	calc \
     12 	dwm_mode \
     13 	man \
     14 	menu \
     15 	prog \
     16 	quit \
     17 	todo \
     18 	win \
     19 
     20 all:
     21 	@echo $(EXE): to install run \'make install\' as root user
     22 
     23 install: $(progs)
     24 
     25 $(progs):
     26 	@echo -n installing $@ to $(DESTDIR)$(PREFIX)/bin ...
     27 	@mkdir -p $(DESTDIR)$(PREFIX)/bin
     28 	@cp -f $@ $(DESTDIR)$(PREFIX)/bin/dmenu_$@
     29 	@chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_$@
     30 	@echo \ done
     31 
     32 uninstall:
     33 	@echo -n removing $@ from $(DESTDIR)$(PREFIX)/bin ...
     34 	@rm -f $(DESTDIR)$(PREFIX)/bin/dmenu_$@
     35 	@echo \ done
     36 
     37 .PHONY: all install uninstall $(progs)