diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-10 23:55:26 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-10 23:55:26 +0100 |
commit | f7f87b788bdfdaed3e69b60fd9ce9d2c17b06e0a (patch) | |
tree | 5ee68c7907baf8666d5d585ae491129ffcfdb6e5 /Makefile | |
parent | update news and makefile (diff) | |
download | sleeping-getty-6bffb9d5a572c06dcb49a23607851059f3d9ba6a.tar.gz sleeping-getty-6bffb9d5a572c06dcb49a23607851059f3d9ba6a.tar.bz2 sleeping-getty-6bffb9d5a572c06dcb49a23607851059f3d9ba6a.tar.xz |
Simplify and cahgne license1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 30 | ||||
-rw-r--r-- | Makefile.in | 95 |
2 files changed, 30 insertions, 95 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e13f531 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +all: sleeping-getty + +sleeping-getty: sleeping-getty.o + $(CC) -o $@ sleeping-getty.o $(LDFLAGS) + +install: sleeping-getty + mkdir -p -- "$(DESTDIR)$(PREFIX)/sbin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man8" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty" + cp -- sleeping-getty "$(DESTDIR)$(PREFIX)/sbin/" + cp -- sleeping-getty.8 "$(DESTDIR)$(MANPREFIX)/man8/" + cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/sbin/sleeping-getty" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man8/sleeping-getty.8" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty" + +clean: + -rm -f -- sleeping-getty *.o + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index 223c5bf..0000000 --- a/Makefile.in +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright (C) 2015 Mattias Andrée <maandree@member.fsf.org> -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. - - -### This file will be stored to Makefile once you have run ./configure. ### -### See INSTALL for information on how to install this package. ### - - - -# List of translations to install. -LOCALES = - -# List of man page translations to install. -MAN_LOCALES = - -# Can change these variables with ./configure in the same why you -# would configure them when running make. - - - -##### What is below this line is configurable, but is seldom useful. ##### - - -# Additional options for compiling DVI, PDF, and PostScript manuals. -TEXINFO_FLAGS = - -# The name of the package as it should be installed. -PKGNAME = sleeping-getty - -# The name of the command as it should be installed. -COMMAND = sleeping-getty - - - -##### Nothing interesting below this. ##### - - -# In case you want add some configurations. Primarily -# intended for maintainers. Perhaps add GPG_KEY here. -# Of course, you can declare everthing with ./configure, -# but with this you are less likely to forget it. --include .make-configurations - - -# YOU, AS A USER, SHOULD NOT CHANGE THESE VARIABLES. {{ -# They specify how the reusable makefiles in mk/ shall behave. - -# Package information. -_PROJECT = sleeping-getty -_VERSION = 1.0.1 - -# Used by mk/lang-c.mk -_C_STD = c99 -_PEDANTIC = yes -_SBIN = sleeping-getty -_OBJ_sleeping-getty = sleeping-getty -_HEADER_DIRLEVELS = 0 -_CPPFLAGS = -D'PACKAGE="$(PKGNAME)"' -D'PROGRAM_VERSION="$(_VERSION)"' -_BINDIR = SBINDIR - -# Used by mk/texinfo.mk -_TEXINFO_DIRLEVELS = 2 -_INFOPARTS = 0 -_HAVE_TEXINFO_MANUAL = yes -_HTML_FILES = Free-Software-Needs-Free-Documentation.html GNU-Free-Documentation-License.html \ - GNU-General-Public-License.html index.html Invoking.html Overview.html - -# Used by mk/man.mk -_MAN_PAGE_SECTIONS = 8 -_MAN_8 = sleeping-getty - -# Used by mk/copy.mk -_COPYING = COPYING - -# Used by mk/dist.mk -___EVERYTHING_INFO = sleeping-getty titlepage-data content hardcopy-copying \ - appx/fdl appx/free-software-needs-free-documentation appx/gpl \ - chap/invoking chap/overview \ - reusable/macros reusable/paper reusable/titlepage -___EVERYTHING_H = common -_SRC = $(foreach B,$(_SBIN),$(foreach F,$(_OBJ_$(B)),$(F).c)) -_EVERYTHING = $(foreach F,$(___EVERYTHING_INFO),doc/info/$(F).texinfo) \ - $(foreach F,$(___EVERYTHING_H),src/$(F).h) \ - $(__EVERYTHING_ALL_COMMON) DEPENDENCIES INSTALL NEWS - -# }} - - -# All of the make rules and the configurations. -include $(v)mk/all.mk - |