Skip to content

Commit

Permalink
Repaired the install rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dtynan committed Jun 29, 2022
1 parent 644d634 commit e0cd661
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,20 @@
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.
#
PREFIX?=/usr/local
CFLAGS= -Wall -O #-march=i386

all: gps_time
APP= gps_time

install: gps_time
all: $(APP)

install: $(APP)
install -C -m 555 $(APP) $(PREFIX)/bin
install -C -m 444 $(APP).1 $(PREFIX)/man/man1
gzip $(PREFIX)/man/man1/$(APP).1

clean:
rm -f gps_time gps_time.o
rm -f $(APP) $(APP).o

gps_time: gps_time.o
$(CC) -o gps_time gps_time.o
$(APP): $(APP).o
$(CC) -o $(APP) $(APP).o

0 comments on commit e0cd661

Please sign in to comment.