source: src-sh/de-logout/Makefile @ f9daf0c7

enter/10releng/10.0.3releng/10.1releng/10.1.1releng/10.1.2releng/10.2stable/10
Last change on this file since f9daf0c7 was f9daf0c7, checked in by yurkis <yurkis@…>, 15 months ago

Added 'de-logout' script for correct desktop environment session exit. I will add functions to libpcbsd later. Kris, if you like it please add to build

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#############################################################################
2# Makefile for building: pc-su
3#############################################################################
4
5####### Compiler, tools and options
6
7PREFIX?= /usr/local
8
9AR            = ar cqs
10TAR           = tar -cf
11COMPRESS      = gzip -9f
12COPY          = cp -f
13SED           = sed
14COPY_FILE     = $(COPY)
15COPY_DIR      = $(COPY) -R
16INSTALL_FILE  = $(COPY_FILE)
17INSTALL_DIR   = $(COPY_DIR)
18INSTALL_PROGRAM = $(COPY_FILE)
19DEL_FILE      = rm -f
20SYMLINK       = ln -f -s
21DEL_DIR       = rmdir
22MOVE          = mv -f
23CHK_DIR_EXISTS= test -d
24MKDIR         = mkdir -p
25
26first: all
27
28all:
29
30clean:
31
32check: first
33
34install_scripts: first FORCE
35        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
36        -$(INSTALL_FILE) de-logout $(INSTALL_ROOT)$(PREFIX)/bin/
37
38
39uninstall_scripts:  FORCE
40        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/bin/de-logout
41        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/bin/
42
43
44install_dochmod: first FORCE
45        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
46        chmod 755 $(PREFIX)/bin/de-logout
47
48
49install:  install_scripts install_dochmod  FORCE
50
51uninstall: uninstall_scripts   FORCE
52
53FORCE:
54
Note: See TracBrowser for help on using the repository browser.