flashrom 0.9.9 make file has an uninstall target?

New to Debian (Or Linux in general)? Ask your questions here!

flashrom 0.9.9 make file has an uninstall target?

Postby hthi » 2017-09-23 15:31

flashrom-0.9.9

This is the source software of the make file
Code: Select all
# This file is part of the flashrom project.
#
# This Makefile works standalone, but it is usually called from the main
# Makefile in the flashrom directory.

PROGRAM=ich_descriptors_tool
EXTRAINCDIRS = ../../ .
DEPPATH = .dep
OBJATH = .obj
SHAREDSRC = ich_descriptors.c
SHAREDSRCDIR = ../..
# If your compiler spits out excessive warnings, run make WARNERROR=no
# You shouldn't have to change this flag.
WARNERROR ?= yes

SRC = $(wildcard *.c)

CC ?= gcc

# If the user has specified custom CFLAGS, all CFLAGS settings below will be
# completely ignored by gnumake.
CFLAGS ?= -Os -Wall -Wshadow
ifeq ($(TARGET_OS), DOS)
# DJGPP has odd uint*_t definitions which cause lots of format string warnings.
CFLAGS += -Wno-format
endif
ifeq ($(WARNERROR), yes)
CFLAGS += -Werror
endif


FLASHROM_CFLAGS += -MMD -MP -MF $(DEPPATH)/$(@F).d
# enables functions that populate the descriptor structs from plain binary dumps
FLASHROM_CFLAGS += -D ICH_DESCRIPTORS_FROM_DUMP
FLASHROM_CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))

OBJ = $(OBJATH)/$(SRC:%.c=%.o)

SHAREDOBJ = $(OBJATH)/$(notdir $(SHAREDSRC:%.c=%.o))

all:$(PROGRAM)$(EXEC_SUFFIX)

$(OBJ): $(OBJATH)/%.o : %.c
   $(CC) $(CFLAGS) $(CPPFLAGS) $(FLASHROM_CFLAGS) -o $@ -c $<

# this enables us to share source files without simultaneously sharing .o files
# with flashrom, which would lead to unexpected results (w/o running make clean)
$(SHAREDOBJ): $(OBJATH)/%.o : $(SHAREDSRCDIR)/%.c
   $(CC) $(CFLAGS) $(CPPFLAGS) $(FLASHROM_CFLAGS) -o $@ -c $<

$(PROGRAM)$(EXEC_SUFFIX): $(OBJ) $(SHAREDOBJ)
   $(CC) $(LDFLAGS) -o $(PROGRAM)$(EXEC_SUFFIX) $(OBJ) $(SHAREDOBJ)

clean:
   rm -f $(PROGRAM) $(PROGRAM).exe
   rm -rf $(DEPPATH) $(OBJATH)

# Include the dependency files.
-include $(shell mkdir -p $(DEPPATH) $(OBJATH) 2>/dev/null) $(wildcard $(DEPPATH)/*)

.PHONY: all clean


Is there an uninstall target in the make file?
Thank you.
hthi
 
Posts: 133
Joined: 2015-05-09 15:43

Re: flashrom 0.9.9 make file has an uninstall target?

Postby stevepusser » 2017-09-23 20:38

LMRTFY (Let me read that for you):

# This Makefile works standalone, but it is usually called from the main
# Makefile in the flashrom directory.


So there is a main MakeFile elsewhere. Often you have to create this with a configure step first.

But I must ask why you are trying to compile 0.9.9 when Debian stretch has a newer 0.9.9+r1954 in the main repository. If you're running an older Debian, you can very probably backport the package and save yourself a lot of hassle.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8937
Joined: 2009-10-06 05:53

Re: flashrom 0.9.9 make file has an uninstall target?

Postby debiman » 2017-09-23 22:35

this is mostly plain english in plain text files.
i open the file in my favorite editor, and search for the string 'uninstall' - case INsensitive just to be sure.
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: flashrom 0.9.9 make file has an uninstall target?

Postby hthi » 2017-09-24 13:30

Thanks.

Code: Select all
search for the string 'uninstall'

I found another bigger make file. Searched for uninstall. The word is not in the make file.

In readme file it says
'In order to install flashrom and the manpage into /usr/local, type:
make install'

Flashrom 0.9.9 gets installed into folder /usr/local?

why you are trying to compile 0.9.9

I want to install flashrom 0.9.9 on a raspberry pi 0. I could not find flashrom in the
previous version of raspbian.
I compiled and installed flashrom on the raspberry pi 0. I was not sure installation went
without errors. But I did not know how to uninstall. A new version of raspbian has been
released. I have installed it. I found flashrom in the synaptic package manager in
raspbian.
hthi
 
Posts: 133
Joined: 2015-05-09 15:43

Re: flashrom 0.9.9 make file has an uninstall target?

Postby debiman » 2017-09-24 15:48

hthi wrote:I found another bigger make file. Searched for uninstall. The word is not in the make file.

assuming there's no other files included, that probably means that there is no uninstall routine.
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18


Return to Beginners Questions

Who is online

Users browsing this forum: wizard10000 and 7 guests

fashionable