Projects
home:Eustace:branches:Eulaceura:Factory
sgpio
_service:obs_scm:sgpio-makefile.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:sgpio-makefile.patch of Package sgpio
diff --git a/Makefile b/Makefile index 278d966..2b1abe5 100755 --- a/Makefile +++ b/Makefile @@ -23,29 +23,31 @@ MANDIR ?= /usr/local/man +SBINDIR = /sbin +INSTALL = /usr/bin/install ALL = sgpio all: $(ALL) sgpio.o: sgpio.c - gcc -g -Wall -c sgpio.c + gcc $(CFLAGS) -g -Wall -c sgpio.c sgpio: sgpio.o - gcc -g sgpio.o -o sgpio + gcc $(LDFLAGS) -g sgpio.o -o sgpio clean: rm -f sgpio.o sgpio install: $(ALL) for i in $(ALL); do \ - install $$i /sbin/$$i; \ + $(INSTALL) $$i $(SBINDIR)/$$i; \ done - install -d $(MANDIR)/man1 - install -m 0644 *.1 $(MANDIR)/man1 + $(INSTALL) -d $(MANDIR)/man1 + $(INSTALL) -m 0644 *.1 $(MANDIR)/man1 uninstall: for i in $(ALL); do \ - rm -f /sbin/$$i; \ + rm -f $(SBINDIR)/$$i; \ done for i in $(ALL:=.1); do \ rm -f $(MANDIR)/man1/$$i; \
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2